<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
		<title></title>
		<style>
		  .hammer{
		    width: 200px;
		    height: 200px;
		    background: #ccc;
		    margin: 200px auto;
		  }
		</style>
	</head>
	<body>
	  <div class="hammer"></div>
	  
	  <script src="js/hammer.js"></script>
	  
	  <script>
	    let dom =document.querySelector(".hammer");
	    let hammer = new Hammer(dom);
	    hammer.get('rotate').set({"enable":true});
	    hammer.on("rotatemove",e=>{
	      dom.style.transform = `rotate(${e.rotation}deg)`
	    });
	   
	  </script>
	</body>
</html>
